package client;


import java.io.Serializable;


public class Item implements Serializable
{
	private int id = -1;
	private String itemTypNname = null;
	private int quantity = -1;
	private String name = null;
	private String color = null;
	public String ImageName = null;
	public String IconName = null;
	public  byte[] myImagArray = null;
	public  byte[] myIconArray = null;
	public int inCatalog = -1;
	
	public int discountRate = 30;
	public float price = -1;
	public float newPrice = -1;
	public int discount = -1;
	
	public Item(){}
	
	public Item(int id)
	{this.id = id;}
	
	public void initmyIconArray(int size)
	{myIconArray = new byte [size];}
	
	public void initmyImagArray(int size)
	{myImagArray = new byte [size];}
	
	public byte[] getMyImageArray() 
	{return myImagArray;}
	
	public void setMyImageArray(byte[] imagearray)
	{
		for(int i=0;i<imagearray.length;i++)
			this.myImagArray[i] = imagearray[i];
	}
	
	public byte[] getMyIconArray() 
	{return myIconArray;}
	
	public void setMyIconArray(byte[] iconarray)
	{
		for(int i=0;i<iconarray.length;i++)
			this.myIconArray[i] = iconarray[i];
	}
	
	public String getImageName() 
	{return ImageName;}

	public void setImageName(String imageName)
	{this.ImageName = imageName;}
	
	public String getIconName() 
	{return IconName;}

	public void setIconName(String imageName)
	{this.IconName = imageName;}

	
	public void setId(int id)
	{this.id = id;}
	
	public int getId()
	{return this.id;}
	
	public void setItemTypNname(String itemTypNname)
	{this.itemTypNname = itemTypNname;}
	
	public String getItemTypNname()
	{return this.itemTypNname;}
	
	public void setQuantity(int quantity)
	{this.quantity = quantity;}
	
	public int getQuantity()
	{return this.quantity;}
	
	public void setName(String name)
	{this.name = name;}
	
	public String getName()
	{return this.name;}
	
	public void setColor(String color)
	{this.color = color;}
	
	public String getColor()
	{return this.color;}

	public void setPrice(float price)
	{this.price = price;}
	
	public float getPrice()
	{return this.price;}
}
